<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.selectWidth2 {
	width: 152px;
}

.selectWidth2 {
	width: 185px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar">&nbsp;项目基本信息</td>
	</tr>
	<tr>
		<td nowrap width="111" align="right"><span class="color_red">*</span>项目名称：</td>
		<td nowrap colspan="5"><input id="zh_title"
			name="proposal/zh_title" label="项目名称" type="text"
			class="input_css required maxlength:50" style="width: 715px;"
			maxlength="50"
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>申报日期：</td>
		<td nowrap colspan="2"><c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" size="27" className="required date"
				label="申报日期"></cpt:date></td>
		<td nowrap align="right"><span class="color_red">*</span>项目实施地点：</td>
		<td nowrap colspan="2"><c:set var="impl_area_code">
				<x:out select="$xmlData/data/proposal/impl_area_code" />
			</c:set> <c:set var="impl_area">{'id':'${impl_area_code}','name':'<c:if test="${not empty impl_area_code}"></c:if><x:out select="$xmlData/data/proposal/impl_area_name" />'}</c:set>
			 <c:set var="impl_area_params">{'grant_code':'<x:out select="$xmlData/data/proposal/sub_grant_code" />'}</c:set>
			  <input
			name="proposal/impl_area_code" type="hidden"
			value="<x:out select="$xmlData/data/proposal/impl_area_code" />"
			class="required" label="项目实施地点" /> <input
			name="proposal/impl_area_name" type="hidden"
			value="<x:out select="$xmlData/data/proposal/impl_area_name" />" />
			<input id="impl_area_sqlParamVal" type="hidden"
			value="${impl_area_params}" /> <cpt:treeAndComplete id="impl_area"
				width="24" topCheckbox="false" name="impl_area" key="areaTree"
				onClick="initTreeValue" value="${impl_area}" sqlParamVal=""
				checkable="true"></cpt:treeAndComplete>
		<td>
	</tr>
	<tr>

		<c:set var="need_approve">
			<x:out select="$xmlData/data/proposal/need_approve" />
		</c:set>
		<c:if test="${empty need_approve }">
			<c:set var="need_approve">0</c:set>
		</c:if>
		<c:if test="${need_approve==1 }">
			<td nowrap align="right"><span class="color_red">*</span>推荐单位：</td>
			<td nowrap colspan="2"><c:set var="recomend_org_value">
					<x:out select="$xmlData/data/proposal/recomend_org_value" />
				</c:set> <input name="proposal/recomend_org_value" type="hidden"
				value="<x:out select="$xmlData/data/proposal/recomend_org_value" />"
				class="required " label="推荐单位" /> <input
				name="proposal/recomend_org_name" type="hidden"
				value="<x:out select="$xmlData/data/proposal/recomend_org_name" />" />
				<c:set var="sqOrgCode"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/></c:set>
			<cpt:select id="recomend_org" sqlParamVal="{currentorgcode:${sqOrgCode }}" key="recomend_org"
					onChange="initControlValue('recomend_org')"
					value="${recomend_org_value}"></cpt:select></td>
		</c:if>

		<td nowrap align="right"><span class="color_red">*</span>技术领域：</td>
		<td nowrap colspan="${5-need_approve*3}" valign="middle"><input
			type="hidden" name="proposal/need_approve" value="${need_approve}">
			<c:set var="applicant_subject_value">
				<x:out select="$xmlData/data/proposal/applicant_subject_value" />
			</c:set> <c:set var="appl_sub_params">
			       {'grant_code':'<x:out
					select="$xmlData/data/proposal/sub_grant_code" />','stat_year':'${statYear}'}			 
			</c:set> <input name="proposal/applicant_subject_value" type="hidden"
			value="<x:out select="$xmlData/data/proposal/applicant_subject_value" />"
			class="required " label="技术领域" /> <input
			name="proposal/applicant_subject_name" type="hidden"
			value="<x:out select="$xmlData/data/proposal/applicant_subject_name" />" />
			<cpt:select id="applicant_subject" key="applicant_subject"
				className="selectWidth2"
				onChange="initControlValue('applicant_subject')"
				value="${applicant_subject_value}" sqlParamVal="${appl_sub_params}"></cpt:select>
		</td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>开始日期：</td>
		<td nowrap colspan="2"><c:set var="start_date">
				<x:out select="$xmlData/data/proposal/start_date" />
			</c:set> <cpt:date id="start_date" name="proposal/start_date"
				value="${start_date}" size="27"
				className="required date  dateCompare:end_date" label="项目开始日期"></cpt:date>

		</td>
		<td nowrap align="right"><span class="color_red">*</span>结束日期：</td>
		<td nowrap colspan="2"><c:set var="end_date">
				<x:out select="$xmlData/data/proposal/end_date" />
			</c:set> <cpt:date id="end_date" name="proposal/end_date"
				className="required date" label="项目结束日期" size="27"
				value="${end_date}"></cpt:date></td>

	</tr>

	<tr>
		<td nowrap align="right"><span class="color_red">*</span>学科名称1：</td>
		<td nowrap colspan="2"><c:set var="subject_code">
				<x:out select="$xmlData/data/proposal/subject1_code" />
			</c:set> <c:set var="subject">{'id':'${subject_code}','name':'<x:out
					select="$xmlData/data/proposal/subject1_name" />'}</c:set> <input
			name="proposal/subject1_code" type="hidden"
			value="<x:out select="$xmlData/data/proposal/subject1_code" />"
			class="required" label="学科名称1" /> <input
			name="proposal/subject1_name" type="hidden"
			value="<x:out select="$xmlData/data/proposal/subject1_name" />" /> <input
			id="subject1_sqlParamVal" type="hidden" value="${subject_params}" />
			<cpt:treeAndComplete id="subject1" key="medically"
				onClick="initTreeValue" cleanIcon="false" width="27"
				value="${subject}" sqlParamVal="${subject_params}"></cpt:treeAndComplete>

		</td>
		<td nowrap align="right" nowrap>学科名称2：</td>
		<td nowrap colspan="2"><c:set var="subject_code">
				<x:out select="$xmlData/data/proposal/subject2_code" />
			</c:set> <c:set var="subject">{'id':'${subject_code}','name':'<x:out
					select="$xmlData/data/proposal/subject2_name" />'}</c:set> <input
			name="proposal/subject2_code" type="hidden"
			value="<x:out select="$xmlData/data/proposal/subject2_code" />"
			class="noRepeatByNames:subject1_code:subject2_code" label="学科名称2" />
			<input name="proposal/subject2_name" type="hidden"
			value="<x:out select="$xmlData/data/proposal/subject2_name" />" /> <input
			id="subject2_sqlParamVal" type="hidden" value="${subject_params}" />
			<cpt:treeAndComplete id="subject2" key="medically"
				onClick="initTreeValue" cleanIcon="true" width="27"
				value="${subject}" sqlParamVal="${subject_params}"></cpt:treeAndComplete>
		</td>
	</tr>


	<!--  
	<tr>
		<td nowrap    align="right"><span class="color_red">*</span>项目负责人：</td>
		<td nowrap   colspan="1">
			<input id="resp_psn_cname" name="proposal/resp_psn_cname" label="项目负责人" type="text" required class="input_css required maxlength:50"  style="width:150px;" maxlength="50" value="<x:out select="$xmlData/data/proposal/resp_psn_cname" />" /> 
		</td>
		<td nowrap    align="right"><span class="color_red">*</span>联系电话：</td>
		<td nowrap   >
			<input id="resp_psn_tel" name="proposal/resp_psn_tel" label="项目负责人联系电话" type="text" required class="input_css required maxlength:50"  style="width:150px;" maxlength="50" value="<x:out select="$xmlData/data/proposal/resp_psn_tel" />" /> 
		</td>
		<td nowrap    align="right"><span class="color_red">*</span>手机：</td>
		<td nowrap   >
			<input id="resp_psn_mobile" name="proposal/resp_psn_mobile" label="项目负责人手机" onfocus="InitInput.setMobile(this)"  type="text" required class="input_css required maxlength:13"  style="width:150px;" maxlength="13" value="<x:out select="$xmlData/data/proposal/resp_psn_mobile" />" /> 
		</td>
	</tr>
	
	<tr>
		<td nowrap   colspan="6" class="t_bar"><span>项目技术情况</span></td>
	</tr>
	-->
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>项目活动类型：</td>
		<td nowrap colspan="2"><c:set var="activity_type">
				<x:out select="$xmlData/data/proposal/basic/activity_type_value" />
			</c:set> <cpt:select id="activity_type" key="activity_type"
				value="${activity_type }" className="selectWidth2"></cpt:select> <input
			type="hidden" name="proposal/basic/activity_type_value"
			id="activity_type_value" label="项目活动类型" class="required"
			value="<x:out select="$xmlData/data/proposal/basic/activity_type_value" />" />
			<input type="hidden" name="proposal/basic/activity_type_name"
			id="activity_type_name" label="项目活动类型"
			value="<x:out select="$xmlData/data/proposal/basic/activity_type_name" />" />
		</td>
		<td nowrap align="right"><span class="color_red">*</span>项目创新类型：</td>
		<td nowrap colspan="2"><c:set var="ideas_type">
				<x:out select="$xmlData/data/proposal/basic/ideas_type_value" />
			</c:set> <cpt:select id="ideas_type" key="ideas_type" value="${ideas_type }"
				className="selectWidth2"></cpt:select> <input type="hidden"
			name="proposal/basic/ideas_type_value" id="ideas_type_value"
			label="项目创新类型" class="required"
			value="<x:out select="$xmlData/data/proposal/basic/ideas_type_value" />" />
			<input type="hidden" name="proposal/basic/ideas_type_name"
			id="ideas_type_name" label="项目创新类型"
			value="<x:out select="$xmlData/data/proposal/basic/ideas_type_name" />" />
		</td>
	</tr>
	<tr>
		<td nowrap align="right" valign="middle"><span class="color_red">*</span>项目主要优势：</td>
		<td nowrap colspan="5" valign="middle"><label> <input
				type="checkbox" class="do " id="advant_01"
				style="vertical-align: middle;" name="advant" label="应用前景很好"
				value="01" /><span style="vertical-align: middle;">应用前景很好</span>
		</label> <label> <input type="checkbox" class="do " id="advant_02"
				style="vertical-align: middle;" name="advant" label="经济效益显著"
				value="02" /><span style="vertical-align: middle;">经济效益显著</span>
		</label> <label> <input type="checkbox" class="do " id="advant_03"
				style="vertical-align: middle;" name="advant" label="社会效益显著"
				value="03" /><span style="vertical-align: middle;">社会效益显著</span>
		</label> <label> <input type="checkbox" class="do " id="advant_04"
				style="vertical-align: middle;" name="advant" label="生态效益显著"
				value="04" /><span style="vertical-align: middle;">生态效益显著</span>
		</label> <label> <input type="checkbox" class="do " id="advant_05"
				style="vertical-align: middle;" name="advant" label="科技成果创新性突出"
				value="05" /><span style="vertical-align: middle;">科技成果创新性突出</span>
		</label> <label> <input type="checkbox" class="do " id="advant_06"
				style="vertical-align: middle;" name="advant" label="其它" value="06" /><span
				style="vertical-align: middle;">其它</span>
		</label> <input type="hidden" name="proposal/basic/advant_value"
			id="advant_value" class="required"
			value="<x:out select="$xmlData/data/proposal/basic/advant_value" />"
			label="项目主要优势" /> <input type="hidden"
			name="proposal/basic/advant_name" id="advant_name"
			value="<x:out select="$xmlData/data/proposal/basic/advant_name" />"
			label="项目主要优势" /></td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>项目联系人：</td>
		<td nowrap colspan="1"><input id="contact_psn_cname"
			name="proposal/contact_psn_cname" label="项目联系人" type="text" required
			class="input_css required maxlength:50" style="width: 100px;"
			maxlength="50"
			value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />" />
		</td>
		<td nowrap align="right"><span class="color_red">*</span>联系电话：</td>
		<td nowrap><input id="contact_psn_tel"
			name="proposal/contact_psn_tel" label="联系人联系电话" type="text" required
			class="input_css required maxlength:50" style="width: 140px;"
			maxlength="50"
			value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />" />
		</td>
		<td nowrap align="right"><span class="color_red">*</span>手机：</td>
		<td nowrap><input id="contact_psn_mobile"
			name="proposal/contact_psn_mobile" label="联系人手机" type="text" required
			class="input_css required maxlength:13" style="width: 140px;"
			maxlength="11"
			value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />" />
		</td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>项目简介：<br>（200字以内）</td>
		<td colspan="5"><textarea id="brief" name="proposal/brief"
				rows='7' cols='120' class="required textarea maxlength:200"
				label="项目简介" title="提示：简要介绍项目实施的主要内容和拟解决的主要技术问题等，200字以内"><x:out select="$xmlData/data/proposal/brief" /></textarea></td>
	</tr>
</table>

<script type="text/javascript">
	$(function() {
		$("#impl_area,#register_area").css("float", "left");
		$("#subject1,#subject2").css("float", "left").focus(function() {
			subjectControl(this);
		});
		$("#basicInfo tr:visible:even").addClass("li_1");
		$("#basicInfo tr:visible:odd").addClass("li_2");
	});

</script>